home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / thinkref / archive / THINKC7.0.4Update.sea.hqx / EDS 7.0.4 Update / Library Updates.sea / Mac #includes / Mac #includes.c < prev    next >
Text File  |  1994-06-09  |  10KB  |  667 lines

  1. /*
  2.  *  Mac #includes.c - source to MacHeaders
  3.  *
  4.  *  To add a header, change its "#if 0" to "#if 1".
  5.  *
  6.  *  To remove a header, change its "#if 1" to "#if 0".
  7.  *
  8.  *  There are some conflicts and order dependencies among the various
  9.  *  headers:
  10.  *
  11.  *    •    <LoMem.h> and <SysEqu.h> cannot both be included. <LoMem.h>
  12.  *        will not be included if <SysEqu.h> has already been seen.
  13.  *
  14.  *    •    <asm.h> and <Traps.h>, if both are included, must appear
  15.  *        in that order.  If <Traps.h> is included, traps used in
  16.  *        inline assembly must appear without leading underscores.
  17.  *
  18.  *    •    There are now three possible sets of headers that this file
  19.  *        can be used with: pre-7.1 headers (included in the 6.0.x
  20.  *        releases of the THINK Project Manager), 7.1 headers, and the
  21.  *        universal headers (the latter two in the 7.0.x releases of the
  22.  *        TPM). Which set of headers is used is determined by the setting
  23.  *        of the NEW_HEADERS_AVAILABLE macro, below.
  24.  *
  25.  *  If the "Check Pointer Types" option is disabled during the
  26.  *  precompilation process, trap definitions will be stored in
  27.  *  such a way that when a trap is called (in a source file that
  28.  *  #includes the precompiled header), pointer arguments to the
  29.  *  trap will not be matched against the types of corresponding
  30.  *  formal parameters.
  31.  *
  32.  *  This is accomplished by storing "simplified" prototypes for
  33.  *  traps, in which any argument of pointer type is stored as
  34.  *  "void *".  The result closely resembles the treatment of traps
  35.  *  in pre-5.0 versions of THINK C.
  36.  *
  37.  *  (Note that this file is written in such a way that it is immune
  38.  *  to the actual compiler setting of "Check Pointer Types".  Use
  39.  *  the "SIMPLIFY_PROTOTYPES" macro, below, to control whether full
  40.  *  prototypes are retained.)
  41.  *
  42.  *    Note that none of the foregoing applies to Symantec C++, nor to 
  43.  *    Symantec C/C++ for MPW. This file is #included by the source for
  44.  *    MacHeaders++, the precompiled header for Symantec C++. If a compiler
  45.  *    other than THINK C precompiles this file, asm.h and LoMem.h are
  46.  *    #if'd out. If an MPW-hosted compiler precompiles this file, BDC.h
  47.  *    and pascal.h are #if'd out.
  48.  *
  49.  *    Access to low-memory globals is handled as follows: if the Universal
  50.  *    headers are being used, then the file LowMem.h is included, otherwise
  51.  *    LoMem.h is included if THINK C is precompiling this file. Symantec C++
  52.  *    without the universal headers will not have access to low memory globals
  53.  *    unless SysEqu.h or LoMem.h are explicitly included.
  54.  *
  55.  *    Last Revision:    09Jun94
  56.  */
  57.  
  58. #ifndef _H_MacHeaders
  59. #define _H_MacHeaders
  60.  
  61. // set this to 0 (zero) if using the older, pre-7.1 headers
  62. // set this to 1 (one) if using the universal or 7.1 headers
  63. #ifndef NEW_HEADERS_AVAILABLE
  64. #define NEW_HEADERS_AVAILABLE 1
  65. #endif
  66.  
  67. #ifndef __SC__
  68.  
  69. // set this to 0 (zero) to retain full prototypes
  70. // set this to 1 (one) for "simplified" prototypes
  71. #define SIMPLIFY_PROTOTYPES        0
  72.  
  73.  
  74. // prototype checking level
  75. #if SIMPLIFY_PROTOTYPES
  76.     #if !__option(check_ptrs)
  77.         #undef SIMPLIFY_PROTOTYPES
  78.     #endif
  79.     #pragma options(!check_ptrs)
  80. #else
  81.     #if __option(check_ptrs)
  82.         #undef SIMPLIFY_PROTOTYPES
  83.     #endif
  84.     #pragma options(check_ptrs)
  85. #endif
  86.  
  87. #endif
  88.  
  89. // Comment the following three lines to remove prototypes for obsolete traps from the
  90. // precompiled (universal) header. This symbol has no meaning with the old interfaces.
  91. #ifndef OBSOLETE
  92. #define OBSOLETE 1
  93. #endif
  94.  
  95. // ActionAtomIntf
  96.     #if 0
  97.         #include <ActionAtomIntf.h>
  98.     #endif
  99.  
  100. // ADSP
  101.     #if 0
  102.         #include <ADSP.h>
  103.     #endif
  104.  
  105. // AEObjects
  106.     #if 1
  107.         #include <AEObjects.h>
  108.     #endif
  109.     
  110. // AEPackObject
  111.     #if 1
  112.         #include <AEPackObject.h>
  113.     #endif
  114.  
  115. // AERegistry
  116.     #if 1
  117.         #include <AERegistry.h>
  118.     #endif
  119.     
  120. // AIFF
  121.     #if 0
  122.         #include <AIFF.h>
  123.     #endif
  124.  
  125. // Aliases
  126.     #if 0
  127.         #ifdef __APPLETALK__
  128.             #include <Aliases.h>
  129.         #else
  130.             #define __APPLETALK__            // suppress unnecessary #include <AppleTalk.h>
  131.             #include <Aliases.h>
  132.             #undef __APPLETALK__
  133.         #endif
  134.     #endif
  135.  
  136. // AppleEvents
  137.     #if 1
  138.         #include <AppleEvents.h>
  139.     #endif
  140.  
  141. // AppleScript
  142.     #if 0 && NEW_HEADERS_AVAILABLE
  143.         #include <AppleScript.h>
  144.     #endif
  145.  
  146. // AppleTalk
  147.     #if 0
  148.         #include <AppleTalk.h>
  149.     #endif
  150.  
  151. // Balloons
  152.     #if 0
  153.         #ifdef __TRAPS__
  154.             #include <Balloons.h>
  155.         #else
  156.             #define __TRAPS__                // suppress unnecessary #include <Traps.h>
  157.             #define _Pack14 0xA830            // (well, mostly unnecessary...)
  158.             #include <Balloons.h>
  159.             #undef _Pack14
  160.             #undef __TRAPS__
  161.         #endif
  162.     #endif
  163.  
  164. // BDC
  165.     #if 1
  166.         #include <BDC.h>
  167.     #endif
  168.  
  169. // CommResources
  170.     #if 0
  171.         #include <CommResources.h>
  172.     #endif
  173.  
  174. // Components
  175.     #if 0
  176.         #include <Components.h>
  177.     #endif
  178.  
  179. // Connections
  180.     #if 0
  181.         #include <Connections.h>
  182.     #endif
  183.  
  184. // ConnectionTools
  185.     #if 0
  186.         #include <ConnectionTools.h>
  187.     #endif
  188.  
  189. // Controls
  190.     #if 1
  191.         #include <Controls.h>
  192.     #endif
  193.  
  194. // CRMSerialDevices
  195.     #if 0
  196.         #include <CRMSerialDevices.h>
  197.     #endif
  198.  
  199. // CTBUtilities
  200.     #if 0
  201.         #include <CTBUtilities.h>
  202.     #endif
  203.  
  204. // DatabaseAccess
  205.     #if 0
  206.         #include <DatabaseAccess.h>
  207.     #endif
  208.  
  209. // Desk
  210.     #if 1
  211.         #include <Desk.h>
  212.     #endif
  213.  
  214. // DeskBus
  215.     #if 0
  216.         #include <DeskBus.h>
  217.     #endif
  218.  
  219. // Devices
  220.     #if 1
  221.         #include <Devices.h>
  222.     #endif
  223.  
  224. // Dialogs
  225.     #if 1
  226.         #include <Dialogs.h>
  227.     #endif
  228.  
  229. // Dictionary
  230.     #if 0 && NEW_HEADERS_AVAILABLE
  231.         #include <Dictionary.h>
  232.     #endif
  233.  
  234. // DiskInit
  235.     #if 1
  236.         #include <DiskInit.h>
  237.     #endif
  238.  
  239. // Disks
  240.     #if 0
  241.         #include <Disks.h>
  242.     #endif
  243.  
  244. // Editions
  245.     #if 0
  246.         #include <Editions.h>
  247.     #endif
  248.  
  249. // ENET
  250.     #if 0
  251.         #include <ENET.h>
  252.     #endif
  253.  
  254. // EPPC
  255.     #if 0
  256.         #include <EPPC.h>
  257.     #endif
  258.  
  259. // Errors
  260.     #if 1
  261.         #include <Errors.h>
  262.     #endif
  263.  
  264. // Events
  265.     #if 1
  266.         #include <Events.h>
  267.     #endif
  268.  
  269. // Files
  270.     #if 1
  271.         #include <Files.h>
  272.     #endif
  273.  
  274. // FileTransfers
  275.     #if 0
  276.         #include <FileTransfers.h>
  277.     #endif
  278.  
  279. // FileTransferTools
  280.     #if 0
  281.         #include <FileTransferTools.h>
  282.     #endif
  283.  
  284. // Finder
  285.     #if 0
  286.         #include <Finder.h>
  287.     #endif
  288.  
  289. // FixMath
  290.     #if 0
  291.         #include <FixMath.h>
  292.     #endif
  293.  
  294. // Folders
  295.     #if 0
  296.         #include <Folders.h>
  297.     #endif
  298.  
  299. // Fonts
  300.     #if 1
  301.         #include <Fonts.h>
  302.     #endif
  303.  
  304. // GestaltEqu
  305.     #if 1
  306.         #include <GestaltEqu.h>
  307.     #endif
  308.  
  309. // Graf3D
  310.     #if 0
  311.         #include <Graf3D.h>
  312.     #endif
  313.  
  314. // HyperXCmd
  315.     #if 0
  316.         #include <HyperXCmd.h>
  317.     #endif
  318.  
  319. // Icons
  320.     #if 0
  321.         #include <Icons.h>
  322.     #endif
  323.  
  324. // ImageCodec
  325.     #if 0
  326.         #include <ImageCodec.h>
  327.     #endif
  328.  
  329. // ImageCompression
  330.     #if 0
  331.         #include <ImageCompression.h>
  332.     #endif
  333.  
  334. // IntlResources
  335.     #if 0 && NEW_HEADERS_AVAILABLE
  336.         #include <IntlResources.h>
  337.     #endif
  338.  
  339. // Language
  340.     #if 0
  341.         #include <Language.h>
  342.     #endif
  343.  
  344. // Lists
  345.     #if 1
  346.         #include <Lists.h>
  347.     #endif
  348.  
  349. // MediaHandlers
  350.     #if 0
  351.         #include <MediaHandlers.h>
  352.     #endif
  353.  
  354. // Memory
  355.     #if 1
  356.         #include <Memory.h>
  357.     #endif
  358.  
  359. // Menus
  360.     #if 1
  361.         #include <Menus.h>
  362.     #endif
  363.  
  364. // MIDI
  365.     #if 0
  366.         #include <MIDI.h>
  367.     #endif
  368.  
  369. // Movies
  370.     #if 0
  371.         #include <Movies.h>
  372.     #endif
  373.  
  374. // MoviesFormat
  375.     #if 0
  376.         #include <MoviesFormat.h>
  377.     #endif
  378.         
  379. // Notification
  380.     #if 1
  381.         #include <Notification.h>
  382.     #endif
  383.  
  384. // OSA
  385.     #if 0 && NEW_HEADERS_AVAILABLE
  386.         #include <OSA.h>
  387.     #endif
  388.  
  389. // OSAComp
  390.     #if 0 && NEW_HEADERS_AVAILABLE
  391.         #include <OSAComp.h>
  392.     #endif
  393.  
  394. // OSAGeneric
  395.     #if 0 && NEW_HEADERS_AVAILABLE
  396.         #include <OSAGeneric.h>
  397.     #endif
  398.  
  399. // OSEvents
  400.     #if 1
  401.         #include <OSEvents.h>
  402.     #endif
  403.  
  404. // OSUtils
  405.     #if 1
  406.         #include <OSUtils.h>
  407.     #endif
  408.  
  409. // Packages
  410.     #if 1
  411.         #include <Packages.h>
  412.     #endif
  413.  
  414. // Palette
  415.     #if 0
  416.         #include <Palette.h>
  417.     #endif
  418.  
  419. // Palettes
  420.     #if 0
  421.         #include <Palettes.h>
  422.     #endif
  423.  
  424. // Picker
  425.     #if 0
  426.         #include <Picker.h>
  427.     #endif
  428.  
  429. // PictUtil
  430.     #if 0
  431.         #include <PictUtil.h>
  432.     #endif
  433.  
  434. // Power
  435.     #if 0
  436.         #include <Power.h>
  437.     #endif
  438.  
  439. // PPCToolBox
  440.     #if 0
  441.         #include <PPCToolBox.h>
  442.     #endif
  443.  
  444. // Printing
  445.     #if 0
  446.         #include <Printing.h>
  447.     #endif
  448.  
  449. // PrintTraps
  450.     #if 0
  451.         #include <PrintTraps.h>
  452.     #endif
  453.  
  454. // Processes
  455.     #if 0
  456.         #include <Processes.h>
  457.     #endif
  458.  
  459. // QDOffscreen
  460.     #if 0
  461.         #include <QDOffscreen.h>
  462.     #endif
  463.  
  464. // Quickdraw
  465.     #if 1
  466.         #include <Quickdraw.h>
  467.     #endif
  468.  
  469. // QuickdrawText
  470.     #if 1 && NEW_HEADERS_AVAILABLE
  471.         #include <QuickdrawText.h>
  472.     #endif
  473.  
  474. // QuickTimeComponents
  475.     #if 0
  476.         #include <QuickTimeComponents.h>
  477.     #endif
  478.     
  479. // Resources
  480.     #if 1
  481.         #include <Resources.h>
  482.     #endif
  483.  
  484. // Retrace
  485.     #if 0
  486.         #include <Retrace.h>
  487.     #endif
  488.  
  489. // ROMDefs
  490.     #if 0
  491.         #include <ROMDefs.h>
  492.     #endif
  493.  
  494. // SANE
  495.     #if 0
  496.         #include <SANE.h>
  497.     #endif
  498.  
  499. // Scrap
  500.     #if 1
  501.         #include <Scrap.h>
  502.     #endif
  503.  
  504. // Script
  505.     #if 1
  506.         #include <Script.h>
  507.     #endif
  508.  
  509. // SCSI
  510.     #if 0
  511.         #include <SCSI.h>
  512.     #endif
  513.  
  514. // SegLoad
  515.     #if 1
  516.         #include <SegLoad.h>
  517.     #endif
  518.  
  519. // Serial
  520.     #if 0
  521.         #include <Serial.h>
  522.     #endif
  523.  
  524. // ShutDown
  525.     #if 0
  526.         #include <ShutDown.h>
  527.     #endif
  528.  
  529. // Slots
  530.     #if 0
  531.         #include <Slots.h>
  532.     #endif
  533.  
  534. // Sound
  535.     #if 0
  536.         #include <Sound.h>
  537.     #endif
  538.  
  539. // SoundInput
  540.     #if 0
  541.         #include <SoundInput.h>
  542.     #endif
  543.  
  544. // StandardFile
  545.     #if 1
  546.         #include <StandardFile.h>
  547.     #endif
  548.  
  549. // Start
  550.     #if 0
  551.         #include <Start.h>
  552.     #endif
  553.  
  554. // Strings
  555.     #if 1 && NEW_HEADERS_AVAILABLE
  556.         #include <Strings.h>
  557.     #endif
  558.  
  559. // SysEqu
  560.     #if 0 && !defined(__CONDITIONALMACROS__)
  561.         #include <SysEqu.h>
  562.     #endif
  563.     
  564. // Terminals
  565.     #if 0
  566.         #include <Terminals.h>
  567.     #endif
  568.  
  569. // TerminalTools
  570.     #if 0
  571.         #include <TerminalTools.h>
  572.     #endif
  573.  
  574. // TextEdit
  575.     #if 1
  576.         #include <TextEdit.h>
  577.     #endif
  578.  
  579. // TextServices
  580.     #if 1 && NEW_HEADERS_AVAILABLE
  581.         #include <TextServices.h>
  582.     #endif
  583.  
  584. // TextUtils
  585.     #if 1 && NEW_HEADERS_AVAILABLE
  586.         #include <TextUtils.h>
  587.     #endif
  588.     
  589. // Timer
  590.     #if 1
  591.         #include <Timer.h>
  592.     #endif
  593.  
  594. // ToolUtils
  595.     #if 1
  596.         #include <ToolUtils.h>
  597.     #endif
  598.  
  599. // Types
  600.     #if 1
  601.         #include <Types.h>
  602.     #endif
  603.  
  604. // Values
  605.     #if 0
  606.         #include <Values.h>
  607.     #endif
  608.  
  609. // Video
  610.     #if 0
  611.         #include <Video.h>
  612.     #endif
  613.  
  614. // Windows
  615.     #if 1
  616.         #include <Windows.h>
  617.     #endif
  618.  
  619. // pascal.h
  620.     #if 1
  621.         #include <pascal.h>
  622.     #endif
  623.  
  624. // asm.h
  625. #ifdef THINK_C
  626.     #if 1
  627.         #include <asm.h>
  628.     #endif
  629. #else
  630.     #if 0
  631.         #include <asm.h>
  632.     #endif
  633. #endif
  634.  
  635. // LoMem
  636.     #if 1
  637.         #if defined(__CONDITIONALMACROS__)
  638.             #include <LowMem.h>
  639.         #elif !defined(__cplusplus) && !defined(__SYSEQU__)
  640.             #include <LoMem.h>
  641.         #endif
  642.     #endif
  643.  
  644. // THINK
  645.     #if 1
  646.         #include <THINK.h>
  647.     #endif
  648.  
  649. // Traps
  650.     #if 0
  651.         #include <Traps.h>
  652.     #endif
  653.  
  654.  
  655. #ifndef __SC__
  656.  
  657. // restore "Check Pointer Types" to previous setting
  658. #if SIMPLIFY_PROTOTYPES
  659.     #pragma options(check_ptrs)
  660. #elif defined(SIMPLIFY_PROTOTYPES)
  661.     #pragma options(!check_ptrs)
  662. #endif
  663. #undef SIMPLIFY_PROTOTYPES
  664.  
  665. #endif
  666. #endif
  667.